﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DiscoveryLogic.Analytics.DataObjects.Rules
{
    public class ClusterAssociation
    {
        private int _ClusterID;
        /// <summary></summary>
        public int ClusterID
        {
            get
            {
                return this._ClusterID;
            }
            set
            {
                this._ClusterID = value;
            }
        }

        private EntityBase _Entity;
        /// <summary></summary>
        public EntityBase Entity
        {
            get
            {
                return this._Entity;
            }
            set
            {
                this._Entity = value;
            }
        }

        private double _Affinity;
        /// <summary>
        /// in the range of (0,1]
        /// </summary>
        public double Affinity
        {
            get
            {
                return this._Affinity;
            }
            set
            {
                this._Affinity = value;
            }
        }

        public ClusterAssociation(int clusterID, EntityBase entity, double affinity)
        {
            this._ClusterID = clusterID;
            this._Entity = entity;
            this._Affinity = affinity;
        }
    }
}
